//------------------------------------------------------------------------------
// <copyright company="Telligent Systems">
//     Copyright (c) Telligent Systems Corporation.  All rights reserved.
// </copyright> 
//------------------------------------------------------------------------------

using System;
using System.Web.UI.WebControls;
using CommunityServer.Discussions.Components;
using CommunityServer.Components;
using CommunityServer.ControlPanel.UI;
using CommunityServer.Controls;
using CommunityServer.ControlPanel.Controls;

namespace CommunityServer.ControlPanel.Forums
{
	/// <summary>
	/// Summary description for ForumGroups.
	/// </summary>
	public class ForumGroupsPage : BaseForumPage
	{
	
		protected CommunityServer.ControlPanel.Controls.ResourceLinkButton AddButton;

		override protected void OnInit(EventArgs e)
		{
			this.AddButton.Click += new EventHandler(AddButton_Click);
			this.Load += new EventHandler(this.Page_Load);
			base.OnInit(e);
		}


		private void Page_Load(object sender, EventArgs e)
		{
			if ( !Page.IsPostBack ) 
			{
			}
		}

		private void AddButton_Click(object sender, EventArgs e)
		{
			CSContext.Current.Context.Response.Redirect(ForumUrls.Instance().ControlPanel_NewGroup);
		}

	}
}
